package com.kb.shop.service.impl;

import com.kb.order.pojo.OrderComment;
import com.kb.shop.dao.OrderCommentDao;
import com.kb.shop.service.IOrderCommentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class OrderCommentServiceImpl implements IOrderCommentService {
    @Autowired
    private OrderCommentDao orderCommentDao;
    @Override
    public int insert(OrderComment pojo) {
        return orderCommentDao.insert(pojo);
    }

    @Override
    public int insertList(List<OrderComment> pojo) {
        return orderCommentDao.insertList(pojo);
    }

    @Override
    public int update(OrderComment pojo) {
        return orderCommentDao.update(pojo);
    }

    @Override
    public List<OrderComment> select(OrderComment pojo) {
        return orderCommentDao.select(pojo);
    }

    @Override
    public List<OrderComment> selectOne(Integer shopId) {
        return orderCommentDao.selectOne(shopId);
    }
}
